package com.zhijian.medical.config;

import com.zhijian.medical.service.MeetingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author HCG
 * @version 1.0
 * @date 2023-09-17
 */
@Component
@Slf4j
public class Init {

    @Autowired
    private MeetingService meetingService;

    /**
     * 把会议的keycode置入缓存
     */
    @PostConstruct
    public void initMeetingCode() {
        meetingService.storeKeyCode();
        log.info("store keycode info to cache success...");
    }


}
